package functional_programming;

import java.util.function.BiConsumer;

class In1 {}
class In2 {}
public class MethodConversion {

    static void accept(In1 i1, In2 i2) {
        System.out.println("accept()");
    }
    static void someOtherName(In1 i1, In2 i2) {
        System.out.println("someOtherName()");
    }

    public static void main(String[] args) {
        BiConsumer<In1,In2> biConsumer;
        biConsumer = MethodConversion::accept;
        biConsumer.accept(new In1(), new In2());
        biConsumer = MethodConversion::someOtherName;
        biConsumer.accept(new In1(),new In2());
    }

}
